#ifndef _MAT_SPARKLE_H_
#define _MAT_SPARKLE_H_

#include "ui/ui_sprite.h"


class MATSparkle 
{
public:
	
	const static int SPARKLE_MAX = 6;

	

	struct	Sparkle
	{
		Sparkle() : m_IsShowing(false),
					m_Delay(0)
		{
		};
		

		bool				m_IsShowing;
		ui::UISprite		m_Sprite;

		void				Render(const math::Vec2& BoardOffset);
		void				Tick(float dt);

		int					m_X;
		int					m_Y;
		float				m_Delay;
		math::Vec2			m_Pos;

	};
	
    MATSparkle();

	void				Tick(float dt);
	void				Render(const math::Vec2& BoardOffset);
	void				ForceFinish();

	
protected:

	Sparkle				m_Sparkles[SPARKLE_MAX];

};


#endif //_MAT_SPARKLE_H_